package com.hutu.kboshi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hutu.kboshi.pojo.entity.QuestionBankQuestion;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

/**
* @author 20272
* @description 针对表【question_bank_question(题库题目)】的数据库操作Mapper
* @createDate 2024-09-24 22:41:22
* @Entity com.hutu.model.entity.QuestionBankQuestion
*/
public interface QuestionBankQuestionMapper extends BaseMapper<QuestionBankQuestion> {

   @MapKey("value = questionBankId")
   Map<Long,Integer> queryQuestionBankQuestionMax(List<Long> questionBankIds);

   @MapKey("value = questionBankId")
   Map<Long, Integer> queryQuestionBankQuestionMaxList(List<Long> questionBankId);

   void saveBatch(List<QuestionBankQuestion> questionBankQuestionList);
}




